<?php echo $this->Html->script(array('users.view','actions'),$options = array('allowCache'=>false,'safe'=>false,'inline'=>false));?>
<?php echo $this->Html->css(array('users.hange_password','provider.index.images','search-left','lastminute-left','form','actions'),null,array('inline'=>false));?>

<div class="content">
	<div class="left-column">
		
		<?php echo $this->Yachts->search_form_left();?>		
		<div class="clr"></div>	
		<?php echo $this->Yachts->lastminute(2);?>
		<div class="clr"></div>
	</div>
		
	<div class="middle-column main-column">
	    <div class="box corners">
			<h2><?php echo __('Change Password',true)?></h2>
			<table width="100%" style="padding-top:0px; margin: 0px;" cellpadding="0" cellspacing="0">
				<tr>
					<td><?php echo __('Custommer',true)?></td><td><?php echo $this->data['User']['first_name']?> <?php echo $this->data['User']['last_name']?></td>
				</tr>
				<tr>
					<td><?php echo __('E-mail',true)?></td><td><?php echo $this->data['User']['email']?></td>
				</tr>
			</table>
											
			<?php 
				echo $this->Form->create('User',array('url'=>array('plugin'=>false,'controller'=>'users','action'=>'view',$this->data['User']['id'])));
				echo $this->Form->hidden('id');
			?>
							
				<table width="100%" style="padding-top:0px; margin: 0px;" cellpadding="0" cellspacing="0">
					<tr>
						<td align="left" valign="top" style="padding-top:0px; margin: 0px;">		
							<p>If you would like to change your password please enter your existing password, then your new password and submit your request.</p>
							<?php													
								echo $this->Form->input('old_password',array('label'=>__("Please enter your current password",true),'type'=>'password'));
								echo $this->Form->input('new_password',array('label'=>__("Please enter a new password",true),'type'=>'password'));
							?>
						</td>
					</tr>
				</table>

			<?php echo $this->Form->end(__('Submit',true));?>

	
	</div>
	
	<?php if($session->check('Auth.User.id') && $this->Session->read('Auth.User.group') == 'admin' || $session->check('Auth.User.id') && $this->Session->read('Auth.User.group') == 'manag'){?>
	
	<div class="actions main_actions">
		<h3><?php __('Actions'); ?></h3>
		<ul>
			<li><?php echo $this->Html->link(__('List Users/Providers', true), array('controller'=>'users','action' => 'index'));?></li>
			<li><?php echo $this->Html->link(__('New Provider', true), array('controller'=>'users','action' => 'add_provider')); ?> </li>
		</ul>
	</div>
	
	<?php }?>	

	</div>
	<div class="right-column">
			
			<?php echo $this->element('user_main_left_menu')?>
	</div>
</div>
 <div class="clr"></div>